﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Actuals.CoreDomain.Business;
using Actuals.CoreDomain;
using Actuals.CoreDomain.Data;
using Actuals.Data;

namespace Actuals.Business
{
    public class BusinessTeamMember : IBusinessTeamMember
    {
         private IDalTeamMember _dalTeamMember;

          public BusinessTeamMember(IDalTeamMember dalTeamMember)
        {
            _dalTeamMember = dalTeamMember;
        }

          public BusinessTeamMember()
        {
            _dalTeamMember = new DalTeamMember();
        }




         #region IBusinessProject Members

         public IList<ITeamMember> GetTeamMembers(int teamId)
         {
             return _dalTeamMember.GetTeamMembers(teamId);
         }

         public ITeamMember GetTeamMember(Int64 teamMemberId)
         {
             return _dalTeamMember.GetTeamMember(teamMemberId);
         }
         public IList<ITeamMember> GetTeamMemberByEmployee(int employeeId)
         {
             return _dalTeamMember.GetTeamMemberByEmployee(employeeId);
         }
         public int AddTeamMember(ITeamMember teamMember)
         {
             return _dalTeamMember.AddTeamMember(teamMember);
         }

         public int UpdateTeamMember(ITeamMember teamMember)
         {
             return _dalTeamMember.UpdateTeamMember(teamMember);
         }

         public int DeleteTeamMember(Int64 teamMemberId)
         {
             return _dalTeamMember.DeleteTeamMember(teamMemberId);
         }
           
        #endregion
    }
}
